package pzl.com.library.renderer;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Log;

import pzl.com.library.chart.IChart;

/**
 * @author zl.peng
 * @version [1.0, 2016-11-22]
 */

public abstract class BaseDataRenderer {
    public static final String TAG = "BaseDataRenderer";
    protected Paint mDrawPaint;
    private final boolean default_antiAlias = true;
    private final int default_strokeWidth = 5;
    private final Paint.Style default_style = Paint.Style.STROKE;
    private final int default_color = Color.BLACK;
    private final float default_textSize = 33;


    public BaseDataRenderer() {
        Log.d(TAG, "BaseDataRenderer()");
        mDrawPaint = new Paint();
        mDrawPaint.setAntiAlias(default_antiAlias);
        mDrawPaint.setStrokeWidth(default_strokeWidth);
        mDrawPaint.setStyle(default_style);
        mDrawPaint.setColor(default_color);
        mDrawPaint.setTextSize(default_textSize);
    }

    public abstract void drawData(Canvas c, IChart chart);

}
